package cn.gson.boot.model.pojos;

import javax.persistence.*;

@Entity
@Table(name = "role_gong", schema = "boot", catalog = "")
@IdClass(RoleGongPK.class)
public class RoleGong {//角色功能表
    private int jueId;
    private int gongId2;

    public RoleGong(int jueId) {
        this.jueId = jueId;
    }

    public RoleGong() {
    }

    public RoleGong(int jueId, int gongId2) {
        this.jueId = jueId;
        this.gongId2 = gongId2;
    }

    @Id
    @Column(name = "jue_id", nullable = false)
    public int getJueId() {
        return jueId;
    }

    public void setJueId(int jueId) {
        this.jueId = jueId;
    }

    @Id
    @Column(name = "gong_id2", nullable = false)
    public int getGongId2() {
        return gongId2;
    }

    public void setGongId2(int gongId2) {
        this.gongId2 = gongId2;
    }

}
